//练习4：使用Maybe重写ex4，不要有if语句
const fp = require('lodash/fp')
const { Maybe, Container } = require('./support')

const log = v => {
  console.log(v)
  return v
}
let ex4 =function (n) {
  return Maybe.of(n).map(parseInt)._value
   // if(n){
   //    return parseInt(n)
   // }
}

console.log(ex4(2.42424))